<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link type="text/css" rel="stylesheet" href="../public/css/prompt.css">
    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script><!--//备注：支持使用 AMD/CMD 标准模块加载方法加载-->
    <link rel="lshortcut icon"  href="http://tvax3.sinaimg.cn/crop.0.0.800.800.180/006wtuSsly8feqmcbuto4j30m80m8q3d.jpg"  />
    <title>邀请好友</title>
</head>
<body>
<img src="http://tvax3.sinaimg.cn/crop.0.0.800.800.180/006wtuSsly8feqmcbuto4j30m80m8q3d.jpg" style="width:0; height:0; position: fixed;z-index: -1;"  />
    <div class="top">
        <div class="top_table">
           <span class="top_tel">联系方式:</span>
            <span  class="top_input">18655726035</span>
            <span class="top_ren">参与人电话</span>
            <div style="clear: both"></div>
        </div>


        <div class="banner">
            <h1 class="banner_h1">您的抽奖码</h1>
            <div class="number">(共1张)</div>
            <p class="banner_p">您抽到的抽奖码</p>
            <p class="banner_time">2017-6-3&nbsp20:55:55</p>
            <div class="code">000512</div>
        </div>

        <div class="invitation" id="invitation">
            邀请好友拿抽奖码
        </div>
        <div class="prompt">
            <h5>温馨提示:</h5>
            <p>中奖码=INT（xxx，xxx/1，000,000）*抽奖码个数。</p>
            <p>注：INT（X）为取整函数，XXX,XXX区开奖当天收盘</p>
            <p>的上证指数倒序6位。</p>
            <p>例：例如指数为2702.03，则倒序为302072，抽奖</p>
            <p>人数为1000人，中奖码为302.07取整，即第302位</p>
            <p>为中奖者。</p>
        </div>
    </div>
    <div class="top01_a">
        <a href="index.html" class="top01_a01">
            <img src="../public/img/timg.png">
        </a>
    </div>
<script src="../public/js/jquery.min.js"></script>
<script src="../public/js/zepto.js"></script>
<script src="../public/js/jquery.cookie.js"></script>
<script src="../public/js/touch.js"></script>
<script src="../public/js/prompt.js"></script>
<!--<script src="../public/js/weixin.js"></script>-->
<script>
    var imgUrl = "http://tvax3.sinaimg.cn/crop.0.0.800.800.180/006wtuSsly8feqmcbuto4j30m80m8q3d.jpg";
    var lineLink = "http://10.30.1.3:8080/prompt.html";
    var descContent = "分享好友";
    var shareTitle = '邀请好友';
    var appid = 'wxa9227a372938e0dd';
    function shareFriend() {
        WeixinJSBridge.invoke('sendAppMessage',{
            "appid": appid,
            "img_url": imgUrl,
            "img_width": "200",
            "img_height": "200",
            "link": lineLink,
            "desc": descContent,
            "title": shareTitle
        }, function(res) {
            //_report('send_msg', res.err_msg);
        })
    }
    function shareTimeline() {
        WeixinJSBridge.invoke('shareTimeline',{
            "img_url": imgUrl,
            "img_width": "200",
            "img_height": "200",
            "link": lineLink,
            "desc": descContent,
            "title": shareTitle
        }, function(res) {
            //_report('timeline', res.err_msg);
        });
    }
    function shareWeibo() {
        WeixinJSBridge.invoke('shareWeibo',{
            "content": descContent,
            "url": lineLink,
        }, function(res) {
            //_report('weibo', res.err_msg);
        });
    }
    // 当微信内置浏览器完成内部初始化后会触发WeixinJSBridgeReady事件。
    document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
        // 发送给好友
        WeixinJSBridge.on('menu:share:appmessage', function(argv){
            shareFriend();
        });
        // 分享到朋友圈
        WeixinJSBridge.on('menu:share:timeline', function(argv){
            shareTimeline();
        });
        // 分享到微博
        WeixinJSBridge.on('menu:share:weibo', function(argv){
            shareWeibo();
        });
    }, false);
</script>
</body>
</html>